package com.javatest.springboot2basictest.config;

import com.javatest.springboot2basictest.bean.ConditionBean;
import com.javatest.springboot2basictest.condition.MyCondition;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2020-06-28 上午11:51
 */
@Configuration
@Conditional(MyCondition.class)
public class ConditionConfig {

    @Bean
    public ConditionBean conditionBean() {
        return new ConditionBean();
    }
}
